It's always good to go with the small receive buffer size say - 1024 * 4 as it takes a huge memory footprint for each of the WS connections. var buffer = new byte[1024 * 4];