An open API service indexing awesome lists of open source software.

https://github.com/selmanbaskaya/nodejs-socketio

A Node-Express server to test your Socket.io connections!
https://github.com/selmanbaskaya/nodejs-socketio

express nodejs socket-io socket-programming test

Last synced: 3 months ago
JSON representation

A Node-Express server to test your Socket.io connections!

Awesome Lists containing this project

README

          

## Node Express Server for Socket.io
### A Node-Express server to test your Socket.io connections!

****

## Usage

```vue

// connection and send user informations with emitting
const socket = io("https://nodejs-socketioo.herokuapp.com");
socket.on("connect", function () {
const userInfo = { name: "selman", surname: "baskaya", age: "23" };
socket.emit("userInfo", userInfo);
});
// catch the server emit
socket.on("userInfoResponse", (response) => {
console.log("Server's message: ", response);
});

```