Add buffer size and timeout for web socket synchronization