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

https://github.com/socketio/socket.io-fiddle

A minimal example to play with Socket.IO
https://github.com/socketio/socket.io-fiddle

Last synced: 4 months ago
JSON representation

A minimal example to play with Socket.IO

Awesome Lists containing this project

README

          

# Socket.IO Fiddle

```
$ npm install # install the dependencies
$ npm start # run the server
$ npm run client # run the nodejs client
```

And point your browser to `http://localhost:3000`. Optionally, specify a port by supplying the `PORT` env variable.

Other branches:

- [TypeScript](https://github.com/socketio/socket.io-fiddle/tree/typescript)
- [Multiple servers (with Redis adapter/emitter)](https://github.com/socketio/socket.io-fiddle/tree/multiple-servers)
- [Example with CORS](https://github.com/socketio/socket.io-fiddle/tree/cors)
- [Example with self-signed certificate](https://github.com/socketio/socket.io-fiddle/tree/ssl-example)
- [With Vite](https://github.com/socketio/socket.io-fiddle/tree/vite)
- [With µWebSockets.js](https://github.com/socketio/socket.io-fiddle/tree/uws)
- [With PM2](https://github.com/socketio/socket.io-fiddle/tree/pm2)
- [With nginx](https://github.com/socketio/socket.io-fiddle/tree/nginx)

## How to report an issue

Please fork this project, edit it to reproduce the incorrect behavior and link it in the discussion [here](https://github.com/socketio/socket.io/discussions/new).

This is really important for us to be able to help you. Thanks!