Have a config parameter for websocket max buffer size, close #658