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

Ease the usage of web socket with json content directly #44

Closed
cescoffier opened this Issue Nov 29, 2013 · 2 comments

Comments

Projects
None yet
1 participant
@cescoffier
Member

cescoffier commented Nov 29, 2013

public void publish(String uri, ObjectNode node);
public void publish(String uri, json(String));
@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier Mar 2, 2014

Member

Receiving Json is very simple:

@OnMessage(Constants.WAMP_ROUTE)
 public void onMessage(@Parameter("client") String id, @Body ArrayNode message) {
     //...
 }
Member

cescoffier commented Mar 2, 2014

Receiving Json is very simple:

@OnMessage(Constants.WAMP_ROUTE)
 public void onMessage(@Parameter("client") String id, @Body ArrayNode message) {
     //...
 }
@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier Mar 2, 2014

Member

The second method json(String) can be achieved using the Json service:

publisher.publish("/ws/" + name, json.toJson(object));

So it will be connected with the Wisdom Json support.

Member

cescoffier commented Mar 2, 2014

The second method json(String) can be achieved using the Json service:

publisher.publish("/ws/" + name, json.toJson(object));

So it will be connected with the Wisdom Json support.

@cescoffier cescoffier closed this in 575ef96 Mar 2, 2014

@cescoffier cescoffier added this to the 0.4.0 milestone Apr 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment