Jump to content

websocket window7


Recommended Posts

Windows7 not supported websocket. So have to rely on 3rd party exe/dll.
while searching forum not find any code that releted to window7 websocket.
and no UDF on websocket till date.


@Danyfirex started a thread https://www.autoitscript.com/forum/topic/182266-would-be-usefull-create-a-websocket-udf/ but he drop it.

@FireFox example base on Windows8 https://www.autoitscript.com/forum/topic/84133-winhttp-functions/?do=findComment&comment=1172353

So try Google about websocket find this link

https://github.com/uNetworking/uWebSockets

https://github.com/BlueBrain/Rockets

but it's written in c++ and I don’t know c++.In fact I don’t know any language except Autoit.

It will be usefull if someone can provide a example how to do it on windows7.

Thanks.

Link to comment
Share on other sites

I don’t know if it’s safe or not

curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: echo.websocket.org" -H "Origin:http://www.websocket.org" http://echo.websocket.org

response

HTTP/1.1 101 Web Socket Protocol Handshake
Upgrade: WebSocket
Connection: Upgrade
WebSocket-Origin: http://www.websocket.org
WebSocket-Location: ws://echo.websocket.org/
Server: Kaazing Gateway
..........
..........

now how to proceed from here? look like I can't

Quote

But apart from being usable to test the initial handshake curl has no support for Websockets, i.e. it is impossible to actually exchange data using Websockets with curl.

 

Edited by jugador
Link to comment
Share on other sites

  • 2 weeks later...

www.websoket.org is their website.  Their websocket echo test server is wss://echo.websocket.org.  If I were going to be testing my websocket logic, I would use the echo server.

Are you trying to create a websocket client, server, or both?

Edited by TheXman
Link to comment
Share on other sites

@TheXman

I have no knowledge on WebSocket.
So don’t know much about what to look for and type of security risk involve when using WebSocket.
Me shouting loudly for WebSocket as I want to fetch data from few site.

Pm you the testing code.
It will be great for me if you look into it and rectify if wrong :).

Link to comment
Share on other sites

Succeed in Sending and receiving BinaryData using Chilkat own Bindata option.
but failed using Autoit Binary command.

In Chilkat SendFrameBd (=> to send Binary data) need object.

so how do I convert ($o_JpgPath) to object

Local $o_JpgPath = @ScriptDir & '\circle.jpg'
Local $o_Fopen = FileOpen($o_JpgPath, 16)
Local $o_Fread = Binary(FileRead($o_Fopen))
FileClose($o_Fopen)
ConsoleWrite('Number of bytes: ' & BinaryLen($o_Fread) & @CRLF)

and to receive data it need binary object but this way it fail

Local $o_Binary = Binary("")
ConsoleWrite('VarGetType($o_Binary): ' & VarGetType($o_Binary) & @CRLF)

 

Edited by jugador
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...