{"action":"created","issue":{"url":"https://api.github.com/repos/warmcat/libwebsockets/issues/1276","repository_url":"https://api.github.com/repos/warmcat/libwebsockets","labels_url":"https://api.github.com/repos/warmcat/libwebsockets/issues/1276/labels{/name}","comments_url":"https://api.github.com/repos/warmcat/libwebsockets/issues/1276/comments","events_url":"https://api.github.com/repos/warmcat/libwebsockets/issues/1276/events","html_url":"https://github.com/warmcat/libwebsockets/issues/1276","id":323200972,"number":1276,"title":"How to send the data to server while using as the websockets client?","user":{"login":"sgawarikar","id":26919816,"avatar_url":"https://avatars0.githubusercontent.com/u/26919816?v=4","gravatar_id":"","url":"https://api.github.com/users/sgawarikar","html_url":"https://github.com/sgawarikar","followers_url":"https://api.github.com/users/sgawarikar/followers","following_url":"https://api.github.com/users/sgawarikar/following{/other_user}","gists_url":"https://api.github.com/users/sgawarikar/gists{/gist_id}","starred_url":"https://api.github.com/users/sgawarikar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgawarikar/subscriptions","organizations_url":"https://api.github.com/users/sgawarikar/orgs","repos_url":"https://api.github.com/users/sgawarikar/repos","events_url":"https://api.github.com/users/sgawarikar/events{/privacy}","received_events_url":"https://api.github.com/users/sgawarikar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-15T12:43:36Z","updated_at":"2018-05-15T13:01:31Z","closed_at":"2018-05-15T12:48:19Z","author_association":"NONE","body":"Hi,\r\n\r\nI am using this library for websockets client, My requirement is to send/receive data within the same thread. I run the test-client and I am able to receive the data in the registered callback but I didn't found anything to send the data on server. How to use this library to send the data while using as the websockets client?\r\n\r\nIf I use multi-theading, i.e. two different threads for send and receive, then Is the library thread-safe?"},"comment":{"url":"https://api.github.com/repos/warmcat/libwebsockets/issues/comments/389157990","html_url":"https://github.com/warmcat/libwebsockets/issues/1276#issuecomment-389157990","issue_url":"https://api.github.com/repos/warmcat/libwebsockets/issues/1276","id":389157990,"user":{"login":"sgawarikar","id":26919816,"avatar_url":"https://avatars0.githubusercontent.com/u/26919816?v=4","gravatar_id":"","url":"https://api.github.com/users/sgawarikar","html_url":"https://github.com/sgawarikar","followers_url":"https://api.github.com/users/sgawarikar/followers","following_url":"https://api.github.com/users/sgawarikar/following{/other_user}","gists_url":"https://api.github.com/users/sgawarikar/gists{/gist_id}","starred_url":"https://api.github.com/users/sgawarikar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgawarikar/subscriptions","organizations_url":"https://api.github.com/users/sgawarikar/orgs","repos_url":"https://api.github.com/users/sgawarikar/repos","events_url":"https://api.github.com/users/sgawarikar/events{/privacy}","received_events_url":"https://api.github.com/users/sgawarikar/received_events","type":"User","site_admin":false},"created_at":"2018-05-15T13:01:31Z","updated_at":"2018-05-15T13:01:31Z","author_association":"NONE","body":"> If you look at any of the examples you will see you cannot send anything with lws until the WRITABLE callback is coming, on the event loop thread.\r\n\r\nDoes it mean the library triggers the WRITABLE callback? If yes then when?\r\n"}}
{"actor":{"display_login":"sgawarikar"}}