Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
789 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...