 eventHandlers = [
 	{
 		expectedType: "dm"
+		expectedArgs: ["dest"]
 		onMessage: (msg, source) ->
 
 	}
 ]
-setupHandlersForUser
+setupHandlersForUser = (conn, id) ->
+
 
 # Login procedure
 WSServer.on 'request', (req) ->

	for group in groupRegistry
		return group if group.id is id

containsUser = (id) -> (getUserById id)?
containsGroup = (id) -> (getGroupById id)?


	wss: require('websocket').server
	sha: require('sha1')
	aes: require('aes256')
	readline: require('readline')

# Initialize modules
WebServer = https.createServer
