Minimum web-socket server logic