Chat server: Difference between revisions

Content added Content deleted
mNo edit summary
Line 1,332: Line 1,332:
using WebSockets
using WebSockets


const connections = Dict{Int,WebSocket}()
#global Dict to store open connections in
global connections = Dict{Int,WebSocket}()
const usernames = Dict{Int,String}()
global usernames = Dict{Int,String}()


function decodeMessage( msg )
function decodeMessage( msg )