message_client_on_socketio
v1.0.85
Published
A wrapper(in JS) built over socket.io which allows access to simple functions to get a listener running, addChannel, deleteChannel, sendMessage etc.
Downloads
7
Maintainers
Readme
!Work in progress!
Message Client (sdk for front end built on socket.io)
Usage
<script src="/message_client_on_socketio/dist/client.js"></script>
var messageServiceClient = new MessageServiceClient({roomName: '/chatroom', publishKey: 44, subscribeKey: 88});
var socket = messageServiceClient.createSocket();
messageServiceClient.addTheListener({
message: function(message) {
console.log("New Message!!", message);
}
})