Example: Hello World
This package includes a demo. You can view source on GitHub and adapt it to your purposes. Or you can follow these instructions to run it in the bottlenose repository:
First, clone the source code:
git clone https://github.com/buccaneerai/bottlenose.gitThen build the packages in bottlenose:
cd bottlenose
yarn bootstrapRun a Socket.io server:
cd packages/rxsocketio
node ./demo/server.jsYou should now see the server listining on port 3000!
In another window (in the same working directory):
cd packages/rxsocketio
node ./demo/client.jsNow your client should connect to the server to send and receive messages! In the client logs, you should see it logging messages that it receives from the server. In the server logs, you should it logging messages it receives from the client.
Last updated
Was this helpful?