Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
788 views
in Technique[技术] by (71.8m points)

playframework - Play Framework as a WebSocket Client

I am using Play 2.3, was checking out the documentation for using Akka as a WebSocket Server. However in documentation they did not indicate if Play could connect to the existing WebSocket Servers. Basically I am interested in being a WebSocket Client who will receive messages from the WebSocket Server. My Play app will make bidirectional request/response with this WebSocket server then finally I will initiate the termination.

Is this possible with Play with Akka?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Not as it stands. Currently it only acts as a server.

What you could do is use a client like jetty websocket from Play itself, and then process the data as you see fit.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...