eidheim / Simple-WebSocket-Server

A very simple, fast, multithreaded, platform independent WebSocket (WS) and WebSocket Secure (WSS) server and client library implemented using C++11, Boost.Asio and OpenSSL. Created to be an easy way to make WebSocket endpoints in C++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about data stream types

margilc opened this issue · comments

Hi,
i've successfully managed to send strings to javascript, but is it also possible, and perhaps more efficient to send integers and floats? I am now sending vectors of doubles as a string stream, but maybe there is a more efficient solution?

I do not know how to convert binary data to a float or integer in javascript, but I guess it's possible.