0

Can a WebSocket client written in java connect with phpwebsocketserver? Or do you have to have both client and server implemented in the same language?

Thanks.

1
  • I don't know the definite answer, but I believe they can be different. I have worked a bit with a Flash based client communicating with a Java server and that works just fine. Hope this answer gives you enough motivation to keep looking :D Commented Sep 14, 2010 at 18:35

3 Answers 3

2

Yes and no. The WebSocket protocol is still being discussed/modified. This has resulted in some incompatibilities among different implementations (for instance, different opcode numbers). That said, many implementations are compatible with eachother. Once the protocol is standardized, all compliant websocket implementations will be able to communicate with eachother regardless of language.

Sign up to request clarification or add additional context in comments.

Comments

0

A socket is a socket. It doesn't matter what languages the server or client is implemented in, just as long as they can use sockets.

1 Comment

FYI: WebSockets are NOT standard sockets; they are created by promoting a HTTP connection by sending a specific HTTP header.
0

It doesn't matter what languages the clents and servers are written in. Messages are passed between the two. All that matters is that message format and header content conform to the websocket protocol.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.