Replacement: https://github.com/NullVoxPopuli/mesh-relay-phoenix this also means the websocket protocol has changed (it's similar, but slightly different from action cable)
This is a public relay server for mesh-chat
See these test scripts for how to interact with the relay.
- push to new heroku app
- add the redis-cloud addon
- point your clients at
ws://you-heroku-app-name.herokuapp.com?uid=your_users_id
You may use any websocket client as long as it adheres to action_cable message formatting, such as action_cable_client (ruby)
Messages should be sent with the chat
command and with a payload of { to: recipient_uid, message: encrypted_data }
client.perform('chat', {
to: 'user1',
message: 'hello from user2'
})
Received messages will look like this:
{ message: encrypted_data }
{
status: 404,
detail: 'uid....'
error: 'message about not being found'
}
- mesh-relay-in-us-1.herokuapp.com
- mesh-relay-us-2.herokuapp.com
- mesh-relay-eu-1.herokuapp.com
- mesh-relay-eu-2.herokuapp.com
Note: all the examples are in ruby. All messages sent and received should be JSON formatted.