2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-05-24 05:44:05 +03:00

16 Commits

Author SHA1 Message Date
Nicolas Meylan ace2bf5d91 Fix observer mutation name when format: json is used (#9)
According to the documentation: "If there is a .mutation value in the
response data, the corresponding mutation is called with the name
SOCKET_[mutation value]"

However when event data does not contains .mutation value mutation is
null, so the mutation is not find in the store.
2017-07-24 12:49:43 -07:00
Mark Macneil 55aa4a75aa Fixes for empty sub-protocol and missing action names (#8)
* 1. Fixed DOMException: Failed to construct 'WebSocket': The subprotocol '' is invalid. in Chrome when empty protocol arg passed in WS ctor.  2.  Action name was never being set/executed on incoming messages.

* upated docs
2017-07-10 09:09:10 -07:00
Nathan 46e251dcbc Api updates (#7)
* move all instantiation options into the opts hash

* 2.0.0
2017-07-07 09:47:01 -07:00
Nathan b62cc5a27c Specs (#6)
* wire up specs

* tests + fixes for #1

* travis
2017-07-07 09:27:32 -07:00
Aaron Chen 96eb7bbfdc fix wrong parameter. 2017-06-29 15:41:05 +08:00
Aaron Chen 93e17ffe0f support websocket protocol, this is optional option. 2017-06-29 15:31:50 +08:00
nathan ace980d539 native websocket with json parsing, vuex integration and namespacing 2017-05-16 22:58:01 -07:00
Jasper Staats 5cb889fd72 Multiple arguments added for emitting to store
This solves issue #51.
2017-05-02 10:53:51 +02:00
Michgeek 8709b16a78 Add support to native events
Native event was passed capitalized which cause unexpected camelCase
conversion.

Event is now passed without uppercasing and save string transformations

e.g.
SOCKET_CONNECT       => `socket_cONNECT`      instead of `socket_connect`
SOCKET_CONNECT_ERROR => `socket_cONNECTERROR` instead of `socket_connectError`
2017-03-29 16:10:27 +11:00
Michgeek 3a86a906d5 Add support for namespaced Vuex actions 2017-03-21 07:40:42 +11:00
Michgeek 7abefc3bad Add namespaced mutation for Vuex 2017-03-19 23:37:00 +11:00
Pieter Jan De Smedt 0edf7322e6 fix: add listeners to custom socket functions on the created hook instead of beforeCreate hook in the mixin lifecycle 2017-01-03 16:30:46 +01:00
metinseylan 8e0100be09 2.1.0 2016-12-31 01:18:10 +03:00
Metin Seylan b0df13186c missing events & build 2016-11-23 13:59:51 +03:00
Metin Seylan 77a06779dc Added Missing Events
Added Missing Events
2016-11-23 13:55:37 +03:00
Metin Seylan 7f5fac27d0 v2 2016-10-29 00:47:04 +03:00