Skip to content

change sockets to channels in Transport.dispatch#1231

Merged
josevalim merged 1 commit intophoenixframework:masterfrom
trarbr:fix-dispatch-args
Sep 25, 2015
Merged

change sockets to channels in Transport.dispatch#1231
josevalim merged 1 commit intophoenixframework:masterfrom
trarbr:fix-dispatch-args

Conversation

@trarbr
Copy link
Copy Markdown
Contributor

@trarbr trarbr commented Sep 25, 2015

Noticed this when reading through the source for the longpoll and websocket transports.

The documentation also mentions that transports dispatch to channels: https://github.com/phoenixframework/phoenix/blob/master/lib/phoenix/socket/transport.ex#L179

josevalim added a commit that referenced this pull request Sep 25, 2015
change `sockets` to `channels` in Transport.dispatch
@josevalim josevalim merged commit d54019e into phoenixframework:master Sep 25, 2015
@chrismccord
Copy link
Copy Markdown
Member

Thanks, but can we revert this? Sockets are multiplexed, so it might have appeared confusing, but each channel has its own socket. sockets in this context was correct

@chrismccord
Copy link
Copy Markdown
Member

Ignore me, @josevalim changed the transports to use channels instead of sockets as their state name, and I missed this change in bbebb81
👍 for consistency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants