dhbaird / easywsclient

A short and sweet WebSocket client for C++
MIT License
741 stars 205 forks source link

How to add parameter at function handle_message #81

Closed NantipatSoftEn closed 5 years ago

NantipatSoftEn commented 5 years ago

ws->dispatch(handle_message, int number);

void handle_message2(const string & message, int number)
{
  printf("%s\n", message.c_str());
}

I try to add parameter but Its bug.