forked from svenvc/zinc
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issue_58' of github.com:GsDevKit/zinc into issue_58
- Loading branch information
Showing
18 changed files
with
47 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ pong: payload | |
|
||
| frame | | ||
frame := ZnWebSocketFrame pong: payload. | ||
self sendFrame: frame | ||
self sendFrame: frame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...itory/Zinc-WebSocket-Core.package/ZnWebSocketChatroomHandler.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
initialize-release | ||
initialize | ||
webSockets := OrderedCollection new. | ||
lock := Mutex new | ||
lock := TransientMutex new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 9 additions & 5 deletions
14
repository/Zinc-WebSocket-Tests.package/ZnWebSocketTests.class/instance/testEcho.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
testing | ||
testEcho | ||
| webSocket message | | ||
ZnServer startDefaultOn: 1701. | ||
ZnServer default | ||
delegate: (ZnWebSocketDelegate map: 'ws-echo' to: ZnWebSocketEchoHandler new). | ||
ZnServer defaultServerClass initialize. | ||
ZnServerStarter start: ZnServer | ||
named: 'ZnWebSocketTestEchoServer' | ||
onPorts: #(1701) | ||
delegate: (ZnWebSocketDelegate map: 'ws-chatroom' to: ZnWebSocketChatroomHandler new). | ||
(Delay forSeconds: 3) wait. | ||
webSocket := ZnWebSocket to: 'ws://localhost:1701/ws-echo'. | ||
message := 'Greetings from Pharo Smalltalk @ ', TimeStamp now printString. | ||
message := 'Greetings from Gemstone Smalltalk @ ', TimeStamp now printString. | ||
webSocket sendMessage: message. | ||
self assert: webSocket readMessage equals: message. | ||
webSocket close. | ||
ZnServer stopDefault. | ||
ZnServerStarter stopAndRemoveGemServerNamed: 'ZnWebSocketTestEchoServer'. | ||
(Delay forSeconds: 3) wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.