Commit 2d81715
Alec Gibson
Move the handshake initialisation to the socket's
This change moves the handshake initialisation to the socket's `onopen`.
This avoids us having to wait for a message from the server before
initiating the handshake, saving us half a round-trip. It should also
make it easier to eventually refactor out the legacy initialisation.onopen
1 parent a081492 commit 2d81715
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
695 | 696 | | |
696 | 697 | | |
697 | 698 | | |
698 | | - | |
699 | | - | |
| 699 | + | |
| 700 | + | |
700 | 701 | | |
701 | 702 | | |
702 | 703 | | |
| |||
0 commit comments