-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...easide-WebSocket-Core.package/WAWebSocket.class/instance/initializeWithRequestContext..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,5 @@ | ||
initialization | ||
initializeWithRequestContext: aRequestContext | ||
|
||
self initialize. | ||
session := aRequestContext session. |
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Core.package/WAWebSocket.class/instance/isConnected.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,3 +1,4 @@ | ||
testing | ||
isConnected | ||
|
||
self subclassResponsibility |
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Core.package/WAWebSocket.class/instance/onClose..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,3 +1,4 @@ | ||
callbacks | ||
onClose: aBlock | ||
|
||
onClose := aBlock |
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Core.package/WAWebSocket.class/instance/onError..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,5 @@ | ||
callbacks | ||
onError: aOneArgumentBlock | ||
|
||
onError := aOneArgumentBlock | ||
|
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Core.package/WAWebSocket.class/instance/onMessage..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,3 +1,4 @@ | ||
callbacks | ||
onMessage: aOneArgumentBlock | ||
|
||
onMessage := aOneArgumentBlock |
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Core.package/WAWebSocket.class/instance/run.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,5 @@ | ||
running | ||
run | ||
"Run the WebSocket's input process." | ||
|
||
self subclassResponsibility |
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Core.package/WAWebSocket.class/instance/send..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,5 @@ | ||
callbacks | ||
send: aString | ||
"Write data to the socket" | ||
|
||
self subclassResponsibility |
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Core.package/WAWebSocket.class/instance/touchSession.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,6 +1,7 @@ | ||
private | ||
touchSession | ||
"Prevent session expiry." | ||
|
||
session ifNotNil: [ :s | | ||
Transcript show:'Touch session ', s key;cr. | ||
s application cache at: s key ifAbsent:[ ] ] |
2 changes: 1 addition & 1 deletion
2
repository/Seaside-WebSocket-Core.package/monticello.meta/categories.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 +1 @@ | ||
SystemOrganization addCategory: #'Seaside-WebSocket-Core'! | ||
self packageOrganizer ensurePackage: #'Seaside-WebSocket-Core' withTags: #()! |
2 changes: 1 addition & 1 deletion
2
repository/Seaside-WebSocket-Examples.package/WAWebSocketCounter.class/class/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
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Examples.package/WAWebSocketCounter.class/instance/decrease.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,5 @@ | ||
actions | ||
decrease | ||
|
||
self model decrease. | ||
self update: #decrease |
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Examples.package/WAWebSocketCounter.class/instance/increase.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,5 @@ | ||
actions | ||
increase | ||
|
||
self model increase. | ||
self update: #increase |
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Examples.package/WAWebSocketCounter.class/instance/pusher.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,3 +1,4 @@ | ||
accessing | ||
pusher | ||
|
||
^ self class pusher |
12 changes: 6 additions & 6 deletions
12
.../Seaside-WebSocket-Examples.package/WAWebSocketCounter.class/instance/renderContentOn..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,18 +1,18 @@ | ||
rendering | ||
renderContentOn: html | ||
|
||
html heading | ||
id: #count; | ||
with: self model count. | ||
|
||
html paragraph: [ | ||
html anchor | ||
onClick: (html jQuery ajax | ||
callback: [ self decrease ]); | ||
onClick: (html jQuery ajax callback: [ self decrease ]); | ||
with: 'dec'. | ||
html space; space; space. | ||
html anchor | ||
onClick: (html jQuery ajax | ||
callback: [ self increase ]); | ||
onClick: (html jQuery ajax callback: [ self increase ]); | ||
with: 'inc' ]. | ||
|
||
html document | ||
addLoadScript: (html websocket | ||
pusher: self pusher) | ||
addLoadScript: (html websocket pusher: self pusher) |
3 changes: 2 additions & 1 deletion
3
repository/Seaside-WebSocket-Examples.package/WAWebSocketCounter.class/instance/update..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
2 changes: 1 addition & 1 deletion
2
repository/Seaside-WebSocket-Examples.package/monticello.meta/categories.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 +1 @@ | ||
SystemOrganization addCategory: #'Seaside-WebSocket-Examples'! | ||
self packageOrganizer ensurePackage: #'Seaside-WebSocket-Examples' withTags: #()! |
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Zinc.package/WAZincWebSocket.class/instance/initializeWith..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,5 +1,6 @@ | ||
initialization | ||
initializeWith: aZnWebSocket | ||
|
||
self initialize. | ||
onClose := [ Transcript show: 'closing...' ]. | ||
znWebSocket := aZnWebSocket |
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Zinc.package/WAZincWebSocket.class/instance/isConnected.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,3 +1,4 @@ | ||
testing | ||
isConnected | ||
|
||
^ znWebSocket isConnected |
1 change: 1 addition & 0 deletions
1
repository/Seaside-WebSocket-Zinc.package/WAZincWebSocket.class/instance/run.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,5 +1,6 @@ | ||
running | ||
run | ||
|
||
[ znWebSocket runWith: [ :message | self touchSession. onMessage value: message ] ] | ||
on: ConnectionClosed | ||
do: [ :e | onClose ifNotNil:[ onClose cull: e ] ] |
4 changes: 2 additions & 2 deletions
4
repository/Seaside-WebSocket-Zinc.package/WAZincWebSocket.class/instance/send..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,6 +1,6 @@ | ||
instructions | ||
callbacks | ||
send: aString | ||
|
||
self isConnected ifFalse: [ ^ self ]. | ||
|
||
self touchSession. | ||
znWebSocket sendMessage: aString |
2 changes: 1 addition & 1 deletion
2
repository/Seaside-WebSocket-Zinc.package/monticello.meta/categories.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 +1 @@ | ||
SystemOrganization addCategory: #'Seaside-WebSocket-Zinc'! | ||
self packageOrganizer ensurePackage: #'Seaside-WebSocket-Zinc' withTags: #()! |
1 change: 1 addition & 0 deletions
1
...ry/Seaside-Zinc-Core.package/ZnZincServerAdaptor.class/instance/websocketResponseFrom..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