Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fireloop socket.on event handle #50

Open
aokudan opened this issue Oct 11, 2018 · 0 comments
Open

Fireloop socket.on event handle #50

aokudan opened this issue Oct 11, 2018 · 0 comments

Comments

@aokudan
Copy link

aokudan commented Oct 11, 2018

Hello all,

I want to use FireLoop with Loopback. But I don't understand, how can I define event name for user subscribe in index.html. I found sample project the following. Can it be done with FireLoop?

https://github.com/mean-expert-official/loopback-component-realtime/blob/master/tests/client/index.html

client.on('[POST]/api/rooms', function (room) {
        console.info('Room ', room);
      });
      // subscribe for new messages in the room with Id 1
      client.on('[POST]/api/rooms/1/messages', function (message) {
        console.info('Message ', message);
      });
@aokudan aokudan changed the title Fireloop socket on handle Fireloop socket.on event handle Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant