Yet Another JSON-RPC (YAJ-RPC) is a JSON RPC 2.0 implementation for JVM languages written in Kotlin.
Client and server for WebSockets, TCP/IP, ZeroMQ and HTTP are included, but the RPC implementation itself is totally independent from any networking logic.
The following code is a very minimal example of a WebSocket server implemented in java. All it does is to echo back what it receives in uppercase.
This example is based on the use of Java-WebSocket.
Continue reading Minimal WebSocket server example in Java
Below you’ll find an example of a Python WebSocket client that receives and shows a image that it gets from a Python WebSocket server.
The example is quite simple, and is just an example of how you could send a image over a WebSocket connection.
Continue reading Sending images over websockets in Python 2.7