- Home /
Message recieved Event Handler not available
Hey All
After countless failed attempts and rigorous search, I'm still stuck with which I assume a very straightforward issue. I'm building a socket communication channel between a Hololens(client) and a python server and I am successfully able to make a connection between them using a MessageWebsocket too. Now When I use "MessageReceived"( https://docs.microsoft.com/en-us/windows/uwp/networking/websockets )event to handle the message from the server, Unity while building simply gives me a message that MessageWebsocket doesn't contain MessageRecieved event :
"error CS1061: 'MessageWebSocket' does not contain a definition for 'MessageRecieved' and no extension method 'MessageRecieved' accepting a first argument of type 'MessageWebSocket' could be found (are you missing a using directive or an assembly reference?)"
The error clearly states that its missing MessageRecieved extension but "Windows.Networking.Sockets" actually does contain the event extension.
I have even tried reimporting all the libraries still no result.
Any hints and help are appreciated.
Answer by gulatiaditya · Jan 12, 2018 at 02:05 PM
Well Its solved now, Embarrassingly I had been miss spelling "received" as "recieved" and that was all .
Sadly the error message was kind of misleading, pushed me towards importing and reimporting just because of this line " (are you missing a using directive or an assembly reference?)"
:/
Your answer
Follow this Question
Related Questions
Socket networking performance tips sought 0 Answers
Chat system is not working 1 Answer
LLAPI vs. pure C#.NET sockets 3 Answers
Network HP Bar 0 Answers
Best way to Instantiate and synchronize 300 000+ GameObjects over LAN? 2 Answers