Web Sockets in NitroJS

Real-time for your NuxtJS apps!

Thanks baaaiiii!

NitroJS

Web Sockets

NuxtJS

What's what? 🤔

Web Sockets

What's what? 🤔

Two-way communication <-> between client & server 
"Faaast"

NitroJS

What's what? 🤔

Server-side engine powering Nuxt apps
"Faaaast" & Flexible & Simple

NuxtJS

What's what? 🤔

A meta-framework based on VueJS, powered by NitroJS
We ❤️ it!

Why is it important to me? 🤷

Building Games

The 'Old' Way

NuxtJS
app

WS + REST

back-end

Why is it bad?

Two apps

All the front-end logic on one side

 

CORS to manage

 

Different deployment environments

 

Need for mono-repos? 😫

 

 

2-contexts

Different frameworks

 

Different philosophy

 

Different code-bases

 

Keeping versions in sync

 

Small brain 🧠 

The Big Change!

NuxtJS
app

💁

One app

  • Single code-base
  • Single context
  • Simplified workflow
  • No CORS
  • Small-brain compatible 🧠

Demo?

Smaller

Simpler

Faster

Conclusion

Web Sockets in NitroJS

By Cedric Poilly

Web Sockets in NitroJS

  • 56