I want to create my own WebSocket server, but it will only include a web socket server, no server else. I mean, what I have found so far seems that they extend the servers and meant to be work with the normal server as well.
But I have an application model that works on local with Google Chrome, can connect the other servers via sockets. I want to create minimal but high-speed server to distribute to the clients. Some of you might say that “You get the whole idea of WebSockets wrong”, but I am just trying another perspective.
I have found: SuperWebSockets and JWebSockets but both seems complicated structures for me. I need very little functionality; concurrent connections, rejecting users on criterias, and sending them large data(5-10 MB), limit the bandwith and if possible, need to be implemented in Java, for platform indepenency.
I have network application basics, but I am stuck. Should I write my own handler or use a large library or are there any libraries that can do the basic stuff for me, like multi-threading issues.
P.S. I tried to be as clear as possible, I can explain if something is not clear for anybody. Thanks.
Joe Walnes’ Webbit Server might meet your requirements; a simple event based websocket/http server. Alternatively Netty may give you the building blocks you need. Bandwidth could be limited by utilising a Token Bucket in the event loop.