2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-05-28 10:54:05 +03:00
Commit Graph

25 Commits

Author SHA1 Message Date
Surasak Phothiphiphit 79625aa32f Fix wrong word 2018-04-12 12:32:23 +07:00
Will McNaughton 0494c1388a Convert $connect and $disconnect to arrow functions 2018-04-03 09:54:24 -05:00
Will McNaughton f448e98479 Perform null checks in function 2018-04-02 15:10:51 -05:00
Will McNaughton 738397a278 Make manually connection configurable 2018-04-02 14:54:20 -05:00
Will McNaughton 4a6a39009a Add connect and disconnect functions 2018-04-02 13:55:59 -05:00
Viktor Shcheglov a3b33dd5f3 fixed minor bags 2018-01-08 20:17:34 +03:00
n5leon f30c155298 Fixed context for events calback 2017-11-18 17:02:08 +01:00
Viktor 07328e1548 Add reconnect (#25)
* add ws reconnect

* added in readme text about reconnect
2017-11-13 08:52:29 -08:00
ThomasKlessen 782d400953 namespace support for actions (#24)
* namespace support for actions

* renamed existing tests

* added tests for store-actions with/without namespace

* removed commit parts in action/dispatch tests

* bugfixed failed test runs;
2017-11-13 08:52:01 -08:00
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