Quote:
Originally Posted by thEsp
Great, I wonder how long did it take you to code it ?
|
I appreciate the interest.
Short answer: About 2-3 days because are two versions so they was different days.
The difficult part was make the helper functions for websocket connection (socket_handshake, socket_mask and socket_unmask) because the module Sockets Async don't handle websockets directly so you have to do it yourself (now you can use my functions).
In the second version (actually this last one) I make the say replication then I need send from browser to server too, so I made socket_unmask but also I find one bug with socket_mask sending large data and some pending optimizations, everything solved.
* socket_handshake is for establish the initial connection.
The frontend design is not complex, you can see the .css with few lines.
The JavaScript part was not difficult because it's my main language. Note: don't expect that the code be perfect (except the helper functions), it's just a informal plugin.
Pawn/AMXX was my first language for several years, so..