add code for server sent events
modify a little about websocket