All Projects → MethodGrab → socketio-proxy-boilerplate

MethodGrab / socketio-proxy-boilerplate

Licence: other
An example of using http-proxy to proxy WebSocket requests to a separate server

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to socketio-proxy-boilerplate

uni-chat
uni-app + vue3.0 + typescript + vue-cli 仿手机QQ聊天 qq表情包
Stars: ✭ 55 (+292.86%)
Mutual labels:  socket-io
uno-multiplayer
uno multiplayer web app game based on socket io and nodejs
Stars: ✭ 27 (+92.86%)
Mutual labels:  socket-io
turven
turven lets people on your website see how many other people are also reading the same page 👀
Stars: ✭ 39 (+178.57%)
Mutual labels:  socket-io
2019-01
👨‍💻👩‍💻Boolean Avengers : 개발 상식을 점검할 수 있는 웹 시리어스 게임 서비스
Stars: ✭ 38 (+171.43%)
Mutual labels:  socket-io
RIACharRoom
富媒体游戏聊天室,挂coding上了
Stars: ✭ 15 (+7.14%)
Mutual labels:  socket-io
nodebb-theme-oxide
Theme based on Github for NodeBB.
Stars: ✭ 23 (+64.29%)
Mutual labels:  socket-io
ChartTheStockMarket
🔥 📈 💸 Chart the Stock Market - FCC Challenge
Stars: ✭ 39 (+178.57%)
Mutual labels:  socket-io
UI
适用于 MCSManager 的 Web UI 界面
Stars: ✭ 93 (+564.29%)
Mutual labels:  socket-io
order-service
一个基于vuejs,reactjs,nodejs,socket.io的服务系统
Stars: ✭ 22 (+57.14%)
Mutual labels:  socket-io
spotify-connect-ws
A Socket.IO plugin for interfacing with Spotify's Connect API using WebSockets.
Stars: ✭ 61 (+335.71%)
Mutual labels:  socket-io
AmigoChat-Realtime-Chat-Application
AmigoChat is a responsive real-time chat application built on MERN Stack and Socket io.
Stars: ✭ 22 (+57.14%)
Mutual labels:  socket-io
chokidar-socket-emitter
a simple chokidar watcher which emits events to all connected socket.io clients
Stars: ✭ 28 (+100%)
Mutual labels:  socket-io
live-graph
Simple live graph with Flask and SocketIO
Stars: ✭ 17 (+21.43%)
Mutual labels:  socket-io
spiced-final-project
Career explorer platform developed in React.js in 6 days.
Stars: ✭ 14 (+0%)
Mutual labels:  socket-io
connect4
Connect 4️⃣Game
Stars: ✭ 1 (-92.86%)
Mutual labels:  socket-io
Spreen
Now use any device with a web browser as a second screen for your laptop or PC. No cables. No internet. No software installation. Just Spreen, that's it.
Stars: ✭ 29 (+107.14%)
Mutual labels:  socket-io
react-chat-client
A simple chat client built in React for communicating with the node-multi-server-chat example
Stars: ✭ 24 (+71.43%)
Mutual labels:  socket-io
bot-dialogflow
A BotUI web app connected to DialogFlow
Stars: ✭ 47 (+235.71%)
Mutual labels:  socket-io
gobang
五子棋小游戏canvas socket.io
Stars: ✭ 38 (+171.43%)
Mutual labels:  socket-io
meditation-plus-angular
DEVELOPMENT MOVED TO
Stars: ✭ 15 (+7.14%)
Mutual labels:  socket-io

Socket.io Proxy Boilerplate

An example of using http-proxy to proxy WebSocket requests to a separate server.

Usage

  • npm install
  • npm start
    (or npm run start:dev to use nodemon & show debug messages)
  • Open http://localhost:4000 in the browser and check the console

To show debug messages in the browser use:

localStorage.setItem( 'debug', 'socket.io-client:*,-socket.io-client:socket' );

Testing

To verify that sockets are being used instead of polling, open the dev tools Network tab and find the request using the websocket protocol.
It should have a status code of 101 Switching Protocols and it's frames tab should show all the incoming ping messages from the server.

Notes

  • Socket.io will still do some (~3) initial polling requests before upgradeing to a WebSocket connection.
    If you change the clientside transports to transports : ['websocket'] these initial polling requests will stop but you lose the polling fallback.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].